export const submitAnswers = (data) => {
  const token = uni.getStorageSync('token');
  return uni.request({
    url: 'http://localhost:8888/question/answerUpload',
    method: 'POST',
    data,
    header: {
      'Content-Type': 'application/json',
      'Authorization': token
    }
  }).then(res => {
    if (res[0]) {
      throw new Error(res[0].errMsg);
    }
    return res[1].data;
  });
};